//
//  ViewController.m
//  TBSwitch
//
//  Created by 郑云 on 16/5/9.
//  Copyright © 2016年 ICloud. All rights reserved.
//

#import "ViewController.h"
#import "TBSwitchView.h"
@interface ViewController ()
@property (weak, nonatomic) IBOutlet TBSwitchView *switchView;

@property (weak, nonatomic) IBOutlet UISwitch *systemSwitch;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    self.switchView.on = NO;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)switchChangeAction:(UISwitch *)sender {
    if (sender.on) {
        
    }
}
- (IBAction)switchChange:(TBSwitchView *)sender {
    
    if (sender.on) {
        NSLog(@"kai");
    }
    else
    {
        NSLog(@"guan");
    }
    
}

@end
